package com.ctsi.ssdc.domain;

import com.ctsi.ssdc.annotation.AutoId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * @author ctsi-biyi-generator
*/
@ApiModel(description = "LitemallLog")
public class LitemallLog implements Serializable {
    /**
     * @Fields id 
     */
    @ApiModelProperty("")
    @AutoId(primaryKey = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;

    /**
     * @Fields admin 管理员
     */
    @ApiModelProperty("admin")
    private String admin;

    /**
     * @Fields ip 管理员地址
     */
    @ApiModelProperty("ip")
    private String ip;

    /**
     * @Fields type 操作分类
     */
    @ApiModelProperty("type")
    private Integer type;

    /**
     * @Fields action 操作动作
     */
    @ApiModelProperty("action")
    private String action;

    /**
     * @Fields status 操作状态
     */
    @ApiModelProperty("status")
    private Boolean status;

    /**
     * @Fields result 操作结果，或者成功消息，或者失败消息
     */
    @ApiModelProperty("result")
    private String result;

    /**
     * @Fields comment 补充信息
     */
    @ApiModelProperty("comment")
    private String comment;

    /**
     * @Fields addTime 创建时间
     */
    @ApiModelProperty("addTime")
    private ZonedDateTime addTime;

    /**
     * @Fields updateTime 更新时间
     */
    @ApiModelProperty("updateTime")
    private ZonedDateTime updateTime;

    /**
     * @Fields deleted 逻辑删除
     */
    @ApiModelProperty("deleted")
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    /** 
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     * @return admin 管理员
     */
    public String getAdmin() {
        return admin;
    }

    /**
     * @param admin 管理员
     */
    public void setAdmin(String admin) {
        this.admin = admin == null ? null : admin.trim();
    }

    /** 
     * @return ip 管理员地址
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param ip 管理员地址
     */
    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    /** 
     * @return type 操作分类
     */
    public Integer getType() {
        return type;
    }

    /**
     * @param type 操作分类
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /** 
     * @return action 操作动作
     */
    public String getAction() {
        return action;
    }

    /**
     * @param action 操作动作
     */
    public void setAction(String action) {
        this.action = action == null ? null : action.trim();
    }

    /** 
     * @return status 操作状态
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * @param status 操作状态
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /** 
     * @return result 操作结果，或者成功消息，或者失败消息
     */
    public String getResult() {
        return result;
    }

    /**
     * @param result 操作结果，或者成功消息，或者失败消息
     */
    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }

    /** 
     * @return comment 补充信息
     */
    public String getComment() {
        return comment;
    }

    /**
     * @param comment 补充信息
     */
    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    /** 
     * @return add_time 创建时间
     */
    public ZonedDateTime getAddTime() {
        return addTime;
    }

    /**
     * @param addTime 创建时间
     */
    public void setAddTime(ZonedDateTime addTime) {
        this.addTime = addTime;
    }

    /** 
     * @return update_time 更新时间
     */
    public ZonedDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime 更新时间
     */
    public void setUpdateTime(ZonedDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /** 
     * @return deleted 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LitemallLog other = (LitemallLog) that;
        return (this.getId() == null ? other.getId() == null :
				 this.getId().equals(other.getId()))
            && (this.getAdmin() == null ? other.getAdmin() == null :
				 this.getAdmin().equals(other.getAdmin()))
            && (this.getIp() == null ? other.getIp() == null :
				 this.getIp().equals(other.getIp()))
            && (this.getType() == null ? other.getType() == null :
				 this.getType().equals(other.getType()))
            && (this.getAction() == null ? other.getAction() == null :
				 this.getAction().equals(other.getAction()))
            && (this.getStatus() == null ? other.getStatus() == null :
				 this.getStatus().equals(other.getStatus()))
            && (this.getResult() == null ? other.getResult() == null :
				 this.getResult().equals(other.getResult()))
            && (this.getComment() == null ? other.getComment() == null :
				 this.getComment().equals(other.getComment()))
            && (this.getAddTime() == null ? other.getAddTime() == null :
				 this.getAddTime().equals(other.getAddTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null :
				 this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null :
				 this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAdmin() == null) ? 0 : getAdmin().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getAction() == null) ? 0 : getAction().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }
}